package com.csii.excelapp.entity;

import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.Comment;
import org.apache.poi.ss.usermodel.Hyperlink;
import org.apache.poi.ss.usermodel.RichTextString;

import java.util.Date;

//专用于复制 Excel 中 cell 单元格的内部类
public class BackupCell {
    //单元格批注
    private Comment comment;
    //单元格值的类型
    private int cellType;
    //单元格样式,不含宽高
    private CellStyle cellStyle;
    //单元格中的公式
    private String formula;
    //单元格的文本,如果是文本类型
    private String valueString;
    //单元格的数字,如果是数字类型
    private double valueDouble;
    //单元格中的超链接,如果含有
    private Hyperlink hyperlink;
    //单元格的日期,如果是日期类型
    private Date date;
    //单元格的逻辑值,如果是逻辑类型
    private boolean booleanValue;
    //单元格错误值,如果是错误类型
    private byte errorValue;
    //单元格的富文本对象,如果是富文本类型
    private RichTextString richTextString;
    //单元格所在列的序号
    private int columnIndex;
    //单元格的宽
    private short columnWidth;
    //单元格的高
    private short rowHeight;

    public short getColumnWidth() {
        return columnWidth;
    }

    public void setColumnWidth(short columnWidth) {
        this.columnWidth = columnWidth;
    }

    public short getRowHeight() {
        return rowHeight;
    }

    public void setRowHeight(short rowHeight) {
        this.rowHeight = rowHeight;
    }

    public int getColumnIndex() {
        return columnIndex;
    }

    public void setColumnIndex(int columnIndex) {
        this.columnIndex = columnIndex;
    }

    public RichTextString getRichTextString() {
        return richTextString;
    }

    public void setRichTextString(RichTextString richTextString) {
        this.richTextString = richTextString;
    }

    public byte getErrorValue() {
        return errorValue;
    }

    public void setErrorValue(byte errorValue) {
        this.errorValue = errorValue;
    }

    public String getValueString() {
        return valueString;
    }

    public void setValueString(String valueString) {
        this.valueString = valueString;
    }

    public double getValueDouble() {
        return valueDouble;
    }

    public void setValueDouble(double valueDouble) {
        this.valueDouble = valueDouble;
    }

    public Hyperlink getHyperlink() {
        return hyperlink;
    }

    public void setHyperlink(Hyperlink hyperlink) {
        this.hyperlink = hyperlink;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public boolean isBooleanValue() {
        return booleanValue;
    }

    public void setBooleanValue(boolean booleanValue) {
        this.booleanValue = booleanValue;
    }

    public Comment getComment() {
        return comment;
    }

    public void setComment(Comment comment) {
        this.comment = comment;
    }

    public int getCellType() {
        return cellType;
    }

    public void setCellType(int cellType) {
        this.cellType = cellType;
    }

    public CellStyle getCellStyle() {
        return cellStyle;
    }

    public void setCellStyle(CellStyle cellStyle) {
        this.cellStyle = cellStyle;
    }

    public String getFormula() {
        return formula;
    }

    public void setFormula(String formula) {
        this.formula = formula;
    }
}
